package com.swl.service.impl;

import com.swl.dao.SchoolDao;
import com.swl.pojo.School;
import com.swl.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolServiceImpl implements SchoolService {
    @Autowired
    private SchoolDao schoolDao;
    @Override
    public int insertSchool(School school) {
        System.out.println("insertSchoolService执行了");
        return schoolDao.insertSchool(school);
    }

    @Override
    public List<School> selectAll() {
        return schoolDao.selectAll();
    }
}
